<div id="${args.htmlid}-ranking">
  <table style="width:100%">
	<tr>
		<th>#</th>
		<th>${msg("gwi.run.runner")}</th>
		<th>${msg("gwi.run.runCount")}</th>
		<th>${msg("gwi.run.runType."+runType)}</th>
		<th>${msg("gwi.run.actions")}</th>
	</tr>
	<#list ranking as runner>
		<tr username="${runner.username!}">
	  			<td>${runner_index + 1}</td>
	  			<td>
	  			${runner.name!}&nbsp;${runner.firstName!}
	  			</td> 
			<#switch runType>
	  			<#case "RUNNING">
	  			<td>${runner.runningCount?c}</td> 
				<td>${runner.runningDistance?c}</td> 
	    		<#break>
	  			<#case "SWIMMING">
	  			<td>${runner.swimmingCount?c}</td> 
				<td>${runner.swimmingDistance?c}</td> 
	    		<#break>
	  			<#case "CYCLING">
	  			<td>${runner.cyclingCount?c}</td> 
				<td>${runner.cyclingDistance?c}</td> 
	    		<#break>
	  			<#default>
	  			<td>${runner.runCount?c}</td> 
				<td>${runner.runPoint?c}</td> 
			</#switch> 
			<td>
				<a class="showUserDetails" href="#view"><img src="${url.context}/res/components/dashlets/images/runner-details.png" title="${msg("gwi.run.details")}"/></a>&nbsp;
				<a class="showUserHistory" href="#history"><img src="${url.context}/res/components/dashlets/images/runner-history.jpg" title="${msg("gwi.run.history")}"/></a>&nbsp;
			</td>
		</tr>
	</#list>
	</table>
</div>
